package com.doctcloud.common.core.web.domain;

import com.doctcloud.common.core.utils.CharsetUtils;
import com.doctcloud.common.core.utils.StringUtils;

import java.io.Serializable;

public class BaseCharsetEntity implements Serializable
{
    private static final long serialVersionUID = 1L;
    // 通用setter模板：trim + 编码转换
    protected String processSet(String value) {
//        return CharsetUtils.utf8ToGbk(StringUtils.trim(value));
        return value;
    }
    // 通用getter模板：编码转换
    protected String processGet(String value) {
//        return CharsetUtils.gbkToUtf8(value);
        return value;
    }
}
